<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
    <link href="__ADMIN_PUBLIC__css/style.css" rel="stylesheet" type="text/css" />
    <link href="__ADMIN_PUBLIC__css/select.css" rel="stylesheet" type="text/css" />
    <link href="__ADMIN_PUBLIC__css/appsort.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="__ADMIN_PUBLIC__js/jquery.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__js/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__js/select-ui.min.js"></script>
    <!--<script src="__ADMIN_PUBLIC__js/MultiSelectDropList.js"></script>-->


  
<script type="text/javascript">
    var hostUrl = '{:U('Admin/ad/index/')}';
</script>
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="{:U('Admin/Index/welcome/')}">首页</a></li>
        <li><a href="{:U('Admin/Admin/admin_list/')}">用户管理</a></li>
    </ul>
    </div>

    <div class="formbody" style="min-height: 300px;">


    
  	<div id="tab1" class="tabson">
        <table class="tablelist" >
            <thead style="background:
            <?php
                if($app_type == 2){
                 echo '#00cd2d;';
                }else if($app_type == 1){
                 echo '#ff982d';
                }else if($app_type == 9){
                echo 'red';
                }else{
                 echo '#00ccfc';
                }?>
            ;">
            <tr>
                <td width="8%">	        <div align="center">ID</div></td>
                <td width="14%"><div align="center">用户名</div></td>
                <td width="10%"><div align="center">所属分组</div></td>
                <td width="10%"><div align="center">最近登录IP</div></td>
                <td width="14%"><div align="center">最近登录时间</div></td>
                <td width="9%"><div align="center">状态</div></td>
                <td width="16%"><div align="center">创建时间</div></td>
                <td width="19%"><div align="center">操作</div></td>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr id="del{$vo.id}">
                    <td height="50"><div align="center">{$vo.uid}</div></td>
                    <td><div align="center">{$vo.user_name}</div></td>
                    <td><div align="center">{$vo.group}</div></td>
                    <td><div align="center">{$vo.login_ip}</div></td>
                    <td><div align="center"><if condition=" !empty($vo['login_time']) ">{$vo.login_time|date="Y-m-d H:i:s",###}</if></div></td>
                    <td><div align="center"><if condition=" $vo.status eq 1 ">已启用<else/><span style="color:#F00">已禁用</span></if></div></td>
                    <td><div align="center">{$vo.create_time|date="Y-m-d H:i:s",###}</div></td>
                    <td><div align="center"><if condition=" $_SESSION['aid'] eq $vo[id] || $_SESSION['aid'] eq 1"><a class="a_button" href="{:U('Admin/admin_edit',array('id'=>$vo[uid]))}">详情 / 编辑</a></if>
                        <if condition=" $_SESSION['aid'] eq 1 && $vo['uid'] neq 1" >
                            <a class="a_button" href="javascript:;" onclick="del({$vo[id]})">删除</a></if></div></td>
                </tr>
            </foreach>
            </tbody>
        </table>

    
    </div> 
    
    
  	<div id="tab2" class="tabson" style="display: none;">



    </div>
        <div id="tab3" class="tabson">



        </div>
    </div>


    <script type="text/javascript">
	    $('.tablelist tbody tr:odd').addClass('odd');
	</script>

    </div>
    <!--遮罩层-->
    <div class="clover-layer" style="display: none;"></div>
    <div class="loading"></div>
    <!--弹窗提示层-->
    <div class="tip" style="display: none;">
        <div class="tiptop"><span>提示信息</span><a class="close"></a></div>
        <div class="tipinfo">
            <span><img src="__ADMIN_PUBLIC__images/ticon.png" /></span>
            <div class="tipright">
                <p>是否确认对信息的修改 ？</p>
                <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
            </div>
        </div>

        <div class="tipbtn">
            <input name="" type="button"  class="sure" value="确定" />&nbsp;
            <input name="" type="button"  class="cancel" value="取消" />
        </div>
    </div>






    <script type="text/javascript" src="__ADMIN_PUBLIC__js/appsort.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__js/alert.js"></script>
    <!--下拉多选-->
    <link rel="stylesheet" type="text/css" href="__ADMIN_PUBLIC__multiselectSrc/jquery.multiselect.css" />
    <link rel="stylesheet" type="text/css" href="__ADMIN_PUBLIC__assets/style.css" />
    <link rel="stylesheet" type="text/css" href="__ADMIN_PUBLIC__assets/prettify.css" />
    <script type="text/javascript" src="__ADMIN_PUBLIC__js/ajax.js"></script>
    <link rel="stylesheet" type="text/css" href="__ADMIN_PUBLIC__ui/jquery-ui.css" />
    <script type="text/javascript" src="__ADMIN_PUBLIC__ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__ui/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__assets/prettify.js"></script>
    <script type="text/javascript" src="__ADMIN_PUBLIC__multiselectSrc/jquery.multiselect.js"></script>
    <script type="text/javascript">
//        $(function(){
//
//        });
//        function showValues() {
//            var valuestr = $("#sela").multiselect("MyValues");
//            alert(valuestr);
//        }

    </script>
</body>

</html>
